package com.xyhua.shiro.service.impl;

import com.xyhua.shiro.dao.UserDao;
import com.xyhua.shiro.entity.User;
import com.xyhua.shiro.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * description: UserServiceImpl <br>
 * date: 2020/3/23 1:43 下午 <br>
 * author: huaxiansheng <br>
 * version: 1.0 <br>
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao mUserDao;
    @Override
    public User findUserByName(String username) {
        return mUserDao.findByUsername(username);
    }

    @Override
    public void saveUser(User user) {
        mUserDao.save(user);
    }
}
